package com.soap.service;

import lombok.extern.slf4j.Slf4j;
import org.apache.cxf.feature.Features;
import org.apache.cxf.interceptor.InInterceptors;

import javax.jws.WebService;
import javax.xml.ws.BindingType;
import javax.xml.ws.soap.SOAPBinding;

/**
 * @author lzy
 * @version v1.0
 * Create DateTime: 2019/4/16 20:24
 */
@Slf4j
@WebService()
@BindingType(value = SOAPBinding.SOAP12HTTP_BINDING)
//@Addressing()
@InInterceptors(interceptors = {"com.soap.interceptor.CheckUserInterceptor"})
@Features(features = {
//        "org.apache.cxf.ws.addressing.WSAddressingFeature",
        "org.apache.cxf.feature.LoggingFeature"})
public class HelloServiceImpl implements HelloService {
    @Override
    public String sayHello(String name) {
        log.info("call service sayHello()");
        return "hello " + name;
    }
}
